package com.lanou.dllo.vc.activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.TextView;

import com.lanou.dllo.vc.MyApplication;
import com.lanou.dllo.vc.R;

public class Personal_data_Activity extends BaseActivity implements View.OnClickListener {
    private ImageButton imageButton;
    private TextView userId;
    private MyApplication application;
    String name;



    @Override
    protected int getLayout() {
        return R.layout.activity_personal_data;
    }

    @Override
    protected void initView() {
        imageButton = (ImageButton) findViewById(R.id.arrow);
        imageButton.setOnClickListener(this);
        userId = (TextView) findViewById(R.id.userId);

    }

    @Override
    protected void initData() {
        application = new MyApplication();
        name = application.getUserName();
        userId.setText(name);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.arrow:
                finish();

                break;
        }
    }
}
